﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Modules.CustomerAccountsControl"
    CodeBehind="CustomerAccounts.ascx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="AccountDisplay" Src="~/Modules/AccountDisplay.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="AccountEdit" Src="~/Modules/AccountEdit.ascx" %>
<div class="customer-Accounts">
    <div class="add-button">
      <asp:PlaceHolder ID="phAddButton" runat="server">
        <asp:Button ID="btnAdd" OnClick="btnAdd_Click" runat="server" Text="" CssClass="addaccountbutton" />
      </asp:PlaceHolder>
    </div>
    <div class="clear">
    </div>
    <div>
      <asp:PlaceHolder ID="phCard" runat="server">
        <nopCommerce:AccountEdit ID="AccountEditCtrl" runat="server" />
      </asp:PlaceHolder>
    </div>
    <div style="margin-bottom: 5px;	margin-top: 5px;	float: right; text-align: right;">
      <asp:PlaceHolder ID="phSaveButton" runat="server">
        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="" CssClass="savebutton" ValidationGroup="CustomerAccount" />
        &nbsp;
        <asp:Button ID="btnCancel" runat="server" OnClick="btnCancel_Click" Text="" CssClass="cancelbutton" CausesValidation="false" />
      </asp:PlaceHolder>
    </div>
    <div class="clear">
    </div>
    <div class="address-list">
        <table width="100%" border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td>
              &nbsp;
            </td>
          </tr>
          <tr>
            <td class="title2">
              Список реквизитов
            </td>
          </tr>
          <tr>
            <td>
              &nbsp;
            </td>
          </tr>
          <tr>
            <td class="red1">
              Пожалуйста выберите реквизиты для отправки счетов. Вы можете редактировать или удалять адрес из данного списка.
            </td>
          </tr>
        </table>

        <asp:Repeater ID="rptrBillingAccounts" runat="server" onitemdatabound="rptrBillingAccounts_ItemDataBound">
            <ItemTemplate>
                <div class="address-item">
                    <nopCommerce:AccountDisplay ID="AccountDisplayCtrl" runat="server" Account='<%# Container.DataItem %>'
                        ShowEditButton="true" ShowDeleteButton="true" />
                </div>
            </ItemTemplate>
            <SeparatorTemplate>
                <div class="clear">
                </div>
            </SeparatorTemplate>
        </asp:Repeater>
    </div>
    <div class="clear">
    </div>
</div>
